<nav class="breadcrumb" id="pathContainer">
    <i class="Hui-iconfont Hui-iconfont-weizhi"></i>
    <span>您的位置：</span>
    <span>扶贫主体管理</span>
    <span class="c-999 en">&gt;</span>
    <span class="c-primary">驻村工作队管理</span>
</nav>
<div class="Hui-article" id="mainList">
    <div class="row cl searchBox" style="padding-bottom: 0">
        <form class="form form-horizontal responsive" id="searchForm" novalidate="novalidate">
            <div class="clearfix">
                <div class="conditionBox col-sm-2">
                    <label for="ipt1">隶属关系:</label>
                    <div class="formControls">
                        <select class="select-box select radius" size="1" name="Affiliation" id="province" value="">
                            <option value="" selected>请选择</option>
                            <option value="县（区）">县（区）</option>
                            <option value="街道、镇、乡">街道、镇、乡</option>
                            <option value="军队">军队</option>
                            <option value="村两委">村两委</option>
                        </select>
                    </div>
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="ipt2">单位名称:</label>
                    <input type="text" class="input-text radius" placeholder="请输入帮扶单位名称" name="Unit_name" />
                </div>
                <div class="conditionBox col-sm-2">
                    <label for="ipt2">联系人电话:</label>
                    <input type="text" class="input-text radius" placeholder="请输入联系电话" name="work_telephone" />
                </div>
            </div>
            <div class="clearfix search-btns btn-div">
                <input type="button" class="btn btn-primary  query-btn btn-secondary float-left mr-4" value="查 询"/>
                 <button type="button" class="btn btn-secondary setTeamPopup_btn">组建工作队</button>
            </div>
        </form>
    </div>
    
    <!-- 帮扶单位 -->
    <div class="container clearfix h-85p">
        <div class="col-md-6 pr-20 border-right">
            <h4 class="pl-10 border-left-blue">帮扶单位</h4>
            <div class="table-scroll">
                <table class="table table-border table-bordered">
                    <thead class="text-c row cl table-bgcolor-gary" id="thead">
                        <tr>
                            <th></th>
                            <th>序号</th>
                            <th>行政区划</th>
                            <th>帮扶单位名称</th>
                            <th>帮扶单位类型</th>
                            <th>隶属关系</th>
                            <th>联系电话</th>
                            <th>联系人姓名</th>
                            <th>联系人电话</th>
                            <th>联系人地址</th><!-- 单位地址 -->
                            <th>邮政编码</th>
                            <th>电子邮箱</th>  
                        </tr>
                    </thead>
                    <tbody class="text-c row cl" id="tbody1"></tbody>
                </table>
            </div>
            <div class="page pt-10 clearfix h-8p">
                <div class="f-l fs-08r" style="white-space: nowrap;" id="pageContainer"></div>
                <div class="f-r page-div w-37p h-20" id="pageBtn">
                    <input type="button" value="首页" class="page-btn" id="firstPage">
                    <input type="button" value="上一页" class="page-btn" id="prevPage">
                    <input type="button" value="下一页" class="page-btn" id="nextPage">
                    <input type="button" value="尾页" class="page-btn" id="lastPage">
                </div>
            </div>
            <!-- <div class="page pt-10 clearfix">
                <div class="f-l" style="white-space: nowrap;">
                    <label for="ipt2">每页：</label>
                    <span class="select-box page-span">
                        <select class="select page-select" size="1" name="cty" value="">
                          <option value="" selected>10</option>
                          <option value="1">菜单一</option>
                          <option value="2">菜单二</option>
                          <option value="3">菜单三</option>
                        </select>
                    </span>
                </div>
                <div class="f-r">
                    <input type="button" value="上一页" class="page-btn">
                    <input type="button" value="下一页" class="page-btn">
                </div>
            </div> -->
        </div>
        <!-- 已结对行政村信息 -->
        <div class="col-md-6 pl-20">
            <h4 class="pl-10 border-left-blue">已结对行政村信息</h4>
            <div class="table-scroll">
                <table class="table table-border table-bordered">
                    <thead class="text-c row cl table-bgcolor-gary" id="thead">
                        <tr>
                            <th></th>
                            <th>序号</th>
                            <th>行政村名称</th>
                            <th>行政区划</th>
                            <th>村负责人</th>
                            <th>村属性</th>
                            <th>村办公电话</th>
                        </tr>
                    </thead>
                    <tbody class="text-c row cl" id="tbody2"></tbody>
                </table>
            </div>
            <div id="layPage2" class="text-c mt-20 data-cache layPage"></div>
        </div>
    </div>
</div>

<!-- 组建工作队弹窗 -->
<div style="display: none;height: 100%" id="setTeamPopup">
    <!-- <div id="twinning"> -->
        <form class="form responsive" id="setTeamForm" novalidate="novalidate" style="height: 100%">
            <div class="border-bottom pb-30 area" >
                <div class="row cl inline-block" style="padding-left: 20px;">
                    <label for="">队长：</label>
                    <span class="select-box input-width" style="width: 100px">
                      <select class="select" size="1" name="captain">
                        <option value="" selected>请选择</option>
                        <option value="1">是</option>
                        <option value="0">否</option>
                      </select>
                    </span>
                </div>
                <div class="row cl inline-block" style="padding-left: 20px;">
                    <label for="">第一书记：</label>
                    <span class="select-box input-width" style="width: 100px">
                      <select class="select" size="1" name="firstSecretary">
                        <option value="" selected>请选择</option>
                        <option value="1">是</option>
                        <option value="0">否</option>
                      </select>
                    </span>
                </div>

                <div class="row cl inline-block" style="padding-left: 20px;">
                    <label class="form-label col-1 input-label">驻村开始时间：</label>
                    <div class="formControls col-7">
                        <input type="text" readonly="readonly" class="input-text mccms-validate-required startTime" id="startTime" name="startDate" autocomplete="off" value="" placeholder="请选择驻村起始时间" style="cursor:pointer">
                    </div>
                </div>
                <div class="row cl inline-block" style="padding-left: 20px;">
                    <label class="form-label col-1 input-label">驻村结束时间：</label>
                    <div class="formControls col-7">
                        <input type="text" readonly="readonly" class="input-text mccms-validate-required endTime" id="endTime" name="endDate" autocomplete="off" value="" placeholder="请选择驻村结束时间" style="cursor:pointer">
                    </div>
                </div> 

            </div>
            <div class="pt-5 pl-40 pr-40 pb-40" style="height: 90%">
                <h4 class="pl-10 border-left-blue">帮扶负责人</h4>
                <div class="table-scroll">
                    <table class="table table-border table-bordered">
                        <thead class="text-c row cl table-bgcolor-gary" id="thead">
                            <tr>
                                <th></th>
                                <th>序号</th>
                                <th>责任人编号</th>
                                <th>姓名</th>
                                <th>性别</th>
                                <th>证件号码</th>
                                <th>职务级别</th>
                                <th>政治面貌</th>
                                <th>学历</th>
                                <th>技术特长</th>
                            </tr>
                        </thead>
                        <tbody class="text-c row cl" id="tbody3"></tbody>
                    </table>
                </div>
                <div style="position: relative;margin-top: 10px;">
                    <div id="layPage3" class="text-c data-cache layPage"></div>
                    <button type="button" class="btn btn-secondary size-L sub_btn" style="position: absolute;right: 60px;top: 0px;">结对</button>
                </div>
            </div>
        </form>
    <!-- </div>  -->
    <!-- localHbs -->
</div>

<!-- 帮扶单位模板 -->
<script id="list1" type="text/x-handlebars-template">
    \{{#each resultList}}
    <tr>
        <td><input type="radio" name="radio" id="\{{id}}"></td>
        <td>\{{Math @index '+' '1'}}</td>
        <td>\{{province}}\{{city}}\{{county}}\{{country}}</td>
        <td>\{{unitName}}</td>
        <td>\{{unitType}}</td>
        <td>\{{affiliation}}</td>
        <td>\{{tel}}</td>
        <td>\{{contacts}}</td>
        <td>\{{ContactTel}}</td>
        <td>\{{address}}</td>
        <td>\{{postCode}}</td>
        <td>\{{mail}}</td>
    </tr>
    \{{/each}}
</script>
<!-- 已结对行政村信息模板 -->
<script id="list2" type="text/x-handlebars-template">
    \{{#each result}}
    <tr>
        <td><input type="radio" name="radio2" id="\{{id}}"></td>
        <td>\{{Math @index '+' '1'}}</td>
        <td>\{{name}}</td>
        <td>\{{code}}</td>
        <td>\{{fpeople}}</td>
        <td>\{{nature}}</td>
        <td>\{{contact}}</td>
    </tr>
    \{{/each}}
</script>

<!-- 组建工作队模板 -->
<script id="list3" type="text/x-handlebars-template">
    \{{#each resultList}}
    <tr>
        <td><input type="radio" name="radio3" value="\{{id}}"></td>
        <td>\{{Math @index '+' '1'}}</td>
        <td>\{{duty_id}}</td>
        <td>\{{name}}</td>
        <td>\{{sex}}</td>
        <td>\{{id_number}}</td>
        <td>\{{job_level}}</td>
        <td>\{{face}}</td>
        <td>\{{education}}</td>
        <td>\{{technical}}</td>
    </tr>
    \{{/each}}
</script>
<script id="page" type="text/x-handlebars-template">
    <span>共有\{{rowCount}}条记录，</span>
    <label for="ipt2">每页行数：</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageSize">
            <option value="10" selected>10</option>
            <option value="20">20</option>
            <option value="50">50</option>
            <option value="100">100</option>
            <option value="200">200</option>
            <option value="300">300</option>
        </select>
    </span>
    <label for="ipt2">当前第</label>
    <span class="select-box page-span">
        <select class="select page-select" size="1" name="demo1" id="pageCount">
            \{{#each pageCount}}
            <option value="\{{pageCount}}">\{{pageCount}}</option>
            \{{/each}}
        </select>
    </span>
    <span>页</span>
</script>
<script>
    new villageTeamMng(); //驻村工作队
</script>